<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Datatables;

class ReportController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }



    public function reportList(Request $request)
    {
        if ($request->isMethod('post')) {
            return response()->json(Datatables::ReportList());
        }

        return view('postings.postingsReportList');
    }
}
